package ws.performancetest.tests.synchronization.db;

/**
 * Information about one test measurement.
 * 
 * @author Wilson Santos, 36228 <wilson.santos@ua.pt>
 */
public class DBTestResult {

  /** Test id. */
  private int testId;
  /** Time measured. */
  private long time;

  /**
   * Create new instance.
   *
   * @param testId test id.
   * @param time time measured.
   */
  public DBTestResult(int testId, long time) {
    this.testId = testId;
    this.time = time;
  }

  /**
   * Get property value.
   *
   * @return Test id.
   */
  public int getTestId() {
    return testId;
  }

  /**
   * Get property value.
   *
   * @return Time measured.
   */
  public long getTime() {
    return time;
  }

  /**
   * String representation of this class.
   *
   * @return String containing the time measured for the test.
   */
  @Override
  public String toString() {
    return "Result{id=" + testId + ", time=" + time + "}";
  }
}
